package Controller;

import model.Radio;
import model.Stereo;

/**
 *
 * @author elias
 */
public class CommandStereoONWithRadio implements Command{
    private final Radio radio;
    private final Stereo stereo;

    public CommandStereoONWithRadio(Stereo s, Radio r){
        this.stereo = s;
        this.radio = r;
    }

    public void execute() {
        this.stereo.setStateON(radio);
    }

}
